package com.yanu.trace.t2s.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author whj
 * @since 2021-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Pork implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 猪肉ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 屠宰企业ID
     */
    private Integer enter_id;

    /**
     * 猪肉部位名称
     */
    private String part_name;

    /**
     * 重量
     */
    private Double weight;


    /**
     * 拆解时间
     */
    private Date cut_date;

    /**
     * 父id
     */
    private Integer parent;

    /**
     * 切割等级
     */
    private Integer level;
    /**
     * 是否被购买
     */
    private Integer buy;
    @TableField(exist=false)
    private Pig pig;
    @TableField(exist=false)
    private Enterprise enterprise;


}
